#-*-coding:utf-8-*-

# 数据库连接地址
#SQLALCHEMY_DATABASE_URI = 'mysql://weixin_user:ncuhome1457854631@ncuhomev5.mysql.rds.aliyuncs.com/weixin'
#SQLALCHEMY_COMMIT_ON_TEARDOWN = True
SECRET_KEY = "jwrm3ru89324jiojs"  # session秘钥
PERMANENT_SESSION_LIFETIME = 7200  # session过期时间

WEIXIN_APPID = "wxae665dcf8fe8ad28"  # 公众号id
WEIXIN_SECRET = "c0d2fbc6e183b2299d2883e6d63df86b"  # 公众号secret
MAIN_URL = "https://api.weixin.qq.com/sns/oauth2/access_token"  # 微信通过code换取openid的主地址
OPENID_API_URL = "https://open.weixin.qq.com/connect/oauth2/authorize?\
appid=wxae665dcf8fe8ad28&redirect_uri=\
http%3a%2f%2fweixin.l.ncuhome.cn%3a5050%2fgetopenid&response_type=\
code&scope=snsapi_base&state="  # 获取openid后微信用于回调的接口

GETOPENID = {
    "elec": OPENID_API_URL + "http%3a%2f%2fweixin.l.ncuhome.cn%3a5050%2felec%3f%0a#wechat_redirect",
    "cet": OPENID_API_URL + "http%3a%2f%2fweixin.l.ncuhome.cn%3a5050%2fcet%3f%0a#wechat_redirect"
}
